<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use common\models\kaoguobao\User;

/* @var $this yii\web\View */
/* @var $model common\models\AccountWechat */

$this->title = '用户详情';
$this->params['breadcrumbs'][] = ['label' => 'Account Wechats', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="account-wechat-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'user_name',
            'wechat_id',
                'phone',
            'card_type',
            'card_number',
            'birthday:date',
            'sex',
            'mail',
            [
                'attribute' => 'invite_status',
                'value' => User::$invite_status[$model->invite_status],
            ],
            'invite_id',
            'code',
            'key',
            [
                'attribute' => 'type',
                'value' => User::$type[$model->type],
            ],
            'remarks',
            'created_at:date',
        ],
    ]) ?>

</div>
